// import { stringify } from 'qs';
import request from '@/utils/request';
// 档案办理
// 列表接口
export async function archesList(params) {
  return request(`/esApi/rcrdSerHdl/pageListRcrdSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesOsList(params) {
  return request(`/osApi/rcrdSerHdl/pageRcrdSerHdlList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 派单信息接口
export async function archesSendInfor(params) {
  return request(`/esApi/rcrdSerHdl/getEmpInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesAdd(params) {
  return request(`/esApi/rcrdSerHdl/insertRcrdSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesDetail(params) {
  return request(`/esApi/rcrdSerHdl/queryRcrdSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesUpdateDetail(params) {
  return request(`/esApi/rcrdSerHdl/getRcrdSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesUpdate(params) {
  return request(`/esApi/rcrdSerHdl/updateRcrdSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesToDeal(params) {
  return request(`/osApi/rcrdSerHdl/startHandleRcrdSerHdl`, {
    method: 'POST',
    body: params,
  });
}

export async function archesToDealComplete(params) {
  return request(`/osApi/rcrdSerHdl/signSuccessRcrdSerHdl`, {
    method: 'POST',
    body: params,
  });
}

// 取消办理
export async function archesCancelToDeal(params) {
  return request(`/esApi/rcrdSerHdl/ancellationRcrdSerHdl`, {
    method: 'POST',
    body: params,
  });
}

export async function archesHdlRemark(params) {
  return request(`/esApi/rcrdSerRemark/queryRcrdRemarkList`, {
    method: 'POST',
    body: params,
  });
}
export async function archesaddHdlRemark(params) {
  return request(`/esApi/rcrdSerRemark/insertRcrdRemark`, {
    method: 'POST',
    body: params,
  });
}
export async function archesAddCheck(params) {
  return request(`/esApi/rcrdSerHdl/insertRcrdSerHdlAddCheck`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function addContactInfor(params) {
  return request(`/esApi/insSerHdl/queryContRcrdList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archsubmitToRun(params) {
  return request(`/esApi/rcrdSerHdl/updateSubmitToRun`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function archesGrants(params) {
  return request(`/esApi/rcrdSerHdl/updateOriginalIssue`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getEmpNameList(params) {
  return request(`/esApi/rcrdSerHdl/getEmpList`, {
    method: 'POST',
    body: params,
  });
}
// 获取供应商
export async function getArch(params) {
  return request(`/osApi/rcrdSerHdl/lists`, {
    method: 'POST',
    body: params,
  });
}

// 标记问题人员
export async function signPro(params) {
  return request(`/osApi/problem/personnel/insertProb`, {
    method: 'POST',
    body: params,
  });
}
// 获取问题人员列表
export async function getProList(params) {
  return request(`/osApi/problem/personnel/pageList`, {
    method: 'POST',
    body: params,
  });
}
export async function originCircle(params) {
  return request(`/esApi/rcrdSerHdl/insertOrigInalRemark`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员添加问题反馈
export async function insertProbFdbk(params) {
  return request(`/osApi/problem/personnel/insertProbFdbk`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员详情中的基本信息
export async function getProBaseList(params) {
  return request(`/osApi/problem/personnel/queryProAndDet`, {
    method: 'POST',
    body: params,
  });
}

// 反馈并取消问题人员标记
export async function cancelProbFlag(params) {
  return request(`/osApi/problem/personnel/updateProb`, {
    method: 'POST',
    body: params,
  });
}

export async function getServiceDictList(params) {
  return request(`/mgrApi/plcyDataDict/entrySerTypeList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function uploadFileBatch(params) {
  return request(`/esApi/rcrdSerHdl/rcrdImport`, {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileGrant(params) {
  return request(`/esApi/rcrdSerHdl/rcrdHdlBatchIssue`, {
    method: 'POST',
    body: params,
  });
}
